<tr>
    <td>Username</td>
    <td><%= user_form.text_field :username %></td>
</tr>
<tr>
    <td>Password</td>
    <td><%= user_form.text_field :password %></td>
</tr>
<tr>
    <td>Password Confirmation</td>
    <td><%= user_form.text_field :password_confirmation %></td>
</tr>
<tr>
    <td>E-mail</td>
    <td><%= user_form.text_field :email %></td>
</tr>
<tr>
    <td>First name</td>
    <td><%= user_form.text_field :first_name %></td>
</tr>
<tr>
    <td>Last name</td>
    <td><%= user_form.text_field :last_name %></td>
</tr>    

<% fields_for :address, @user.address do |address_fields| %>
	<%= render :partial => '/shared/address_edit', :locals => {:address_fields => address_fields} %>
<% end %>

<tr>
    <td>Role</td>
    <td><%= user_form.collection_select :role_id, Role.find(:all), :id, :code %></td>
</tr>